<?php
$this->breadcrumbs=array(
	'Posts'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List Post', 'url'=>array('index')),
	array('label'=>'Create Post', 'url'=>array('create')),
	array('label'=>'Update Post', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Post', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Post', 'url'=>array('admin')),
);
?>

<h1><!--View Post --><?php echo $model->title; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'id',
		'title',
		'content:html',
		'tags',
		//array(
		//	'name'=>'status',
		//	'value'=>Lookup::item("PostStatus", $model->status),
		//),
		array(
			'name'=>'goods_need',
			'value'=>Lookup::item("GoodsNeed", $model->goods_need),
		),
		array(            // display 'create_time' using an expression
            'name'=>'create_time',
            'value'=>date("M j, Y", $model->create_time),
        ),
		array(            // display 'update_time' using an expression
            'name'=>'update_time',
            'value'=>date("M j, Y", $model->update_time),
        ),
		//array(            // display 'author.username' using an expression
        //    'name'=>'author',
        //    'value'=>$model->author->username,
        //),
	),
)); 

	//$this->renderPartial('_comments', array('comments'=>$model->comments));


?>
